package P7.T06;

import javax.swing.*;
import java.awt.*;

public class MyJFrame extends JFrame {
    public MyJFrame() {
        this.setTitle("My JFrame");
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setSize(500, 500);
        JTable table = new JTable(4,5);
        table.setFillsViewportHeight(true);
        table.setVisible(true);
        add(table, BorderLayout.CENTER);
        this.setLocationRelativeTo(null);
        this.setVisible(true);
    }
}
